package com.cartoonrabbit.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuTeng
 * @since 2023-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_invite_record")
@ApiModel(value="InviteRecord对象", description="")
public class InviteRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一id")
    @TableId("invite_id")
    private String inviteId;

    @ApiModelProperty(value = "邀请者openID")
    @TableField("invite_openId")
    @JsonIgnore
    private String inviteOpenid;

    @ApiModelProperty(value = "被邀请者openId")
    @TableField("invited_openId")
    @JsonIgnore
    private String invitedOpenid;

    @ApiModelProperty(value = "使用次数")
    @TableField("user_times")
    private Integer userTimes;

    @ApiModelProperty(value = "红包奖励")
    @TableField("award_money")
    private Long awardMoney;

    @ApiModelProperty(value = "邀请时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "被邀请人信息")
    @TableField(exist = false)
    private User invitedUser;


}
